home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / XLayerInfo / XLayerUtil.h < prev   
C/C++ Source or Header  |  1996-11-11  |  2KB  |  56 lines

  1. /*
  2.  * Copyright (c) 1993-94, Silicon Graphics, Inc.
  3.  *
  4.  * Permission to use, copy, modify, distribute, and sell this software and
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that the name of Silicon Graphics may not be used in any advertising or
  7.  * publicity relating to the software without the specific, prior written
  8.  * permission of Silicon Graphics.
  9.  *
  10.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  11.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  12.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  13.  *
  14.  * IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  15.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
  16.  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE
  17.  * POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN
  18.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  19.  *
  20.  * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
  21.  */
  22. /* $Revision: 1.2 $ */
  23. #include <X11/Xlib.h>
  24. #include <X11/Xutil.h>
  25. #include <X11/Xmd.h>
  26.  
  27. /* Transparent type values */
  28. /*      None                  0 */
  29. #define TransparentPixel      1
  30. #define TransparentMask       2
  31.  
  32. /* layered visual info template flags */
  33. #define VisualLayerMask        0x200
  34. #define VisualTransparentType    0x400
  35. #define VisualTransparentValue    0x800
  36. #define VisualAllLayerMask    0xFFF
  37.  
  38. /* layered visual info structure */
  39. typedef struct _XLayerVisualInfo {
  40.    XVisualInfo vinfo;
  41.    int layer;
  42.    int type;
  43.    unsigned long value;
  44. } XLayerVisualInfo;
  45.  
  46. /* SERVER_OVERLAY_VISUALS property element */
  47. typedef struct _OverlayInfo {
  48.    CARD32  overlay_visual;
  49.    CARD32  transparent_type;
  50.    CARD32  value;
  51.    CARD32  layer;
  52. } OverlayInfo;
  53.  
  54. extern XLayerVisualInfo *XGetLayerVisualInfo(Display*,long,XLayerVisualInfo*,int*);
  55. extern Status XMatchLayerVisualInfo(Display*,int,int,int,int,XLayerVisualInfo*);
  56.